package com.hoo.common.constant;

import java.util.HashMap;
import java.util.Map;

public class Constant {
	public static String ticketNo="TICK20160525091550";
	public static final String defaultBuyOrderPrefix="T";
    public static final String defaultPayOrderPrefix="P";
    public static final String defaultTakeTicketByIDcardPrefix="takeTicketByIDcard";
    public static final String defaultTakeTicketByScheduleNum = "checkschedulenum";
    public static final String defaultRequestResource = "requestResource";
    public static final String PROVINCE = "P";
    public static final String CITY = "C";
    public static final String AREA = "A";
    public static final String rootPath = System.getProperty("MuseumTickets.root");
    public static final String OK_MSG = "okmessage";
	public static final String WINDOSFILEPATH = "C:\\Windows\\windowsfile";
	public static final String SCHEDULENUMPRE = "WHW";
	public static final String imagePathFloder="\\advertiseImages\\";
	public static final String TICKETPRE="TICK";
	public static final Map<String, String> CERTIFICATETYPEMAP = new HashMap<String, String>();
	static{
		CERTIFICATETYPEMAP.put("1", "身份证");
		CERTIFICATETYPEMAP.put("2", "学生证");
		CERTIFICATETYPEMAP.put("3", "军官证");
		CERTIFICATETYPEMAP.put("4", "驾驶证");
		CERTIFICATETYPEMAP.put("5", "护照");
		CERTIFICATETYPEMAP.put("6", "其他证件");
	}
    public static final String SUCCESS = "success";
    public static final String FAIL = "fail";
    public static final String ERROR = "error";
    public static final int SECOND = 1;
    public static final int MILLI = 1;
    public static final int MINUTE = 60 * SECOND;
    public static final int HOUR = 60 * MINUTE;
    public static final int DAY = 24 * HOUR;
    public static final int SECOND_OF_MILLI = 1000 * MILLI;
    public static final int MINUTE_OF_MILLI = 60 * SECOND_OF_MILLI;
    public static final int HOUR_OF_MILLI = 60 * MINUTE_OF_MILLI;
    public static final String DATE_FORMAT_LONG_ONE = "yyyy-MM-dd HH:mm:ss";
    public static final String DATE_FORMAT_LONG = "yyyy-MM-dd HH:mm";
    public static final String DATE_FORMAT_SIMPLE = "yyyy-MM-dd";
    public static final String DATE_TAIL_START = " 00:00:00";
    public static final String DATE_TAIL_END = " 23:59:59";
    public static final String COOKIE_CODE = "COOKIE_CODE";
    public static final int CONNECT_STATUS_FAIL=2;
    public static final int CONNECT_STATUS_SUCCESS=1;
    public static final String NO_REPERTORY="OSS";
    public static final String OVERDUE="overdue";
    public static final String DELIVERED="delivered";
    public static final String NO_ORDER="noorder";
    
  /*  public static final WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext();
    public static final  VisitorService visitorService = (VisitorService)wac.getBean("visitorService");
    public static final TicketOrderService ticketOrderService = (TicketOrderService)wac.getBean("ticketOrderService");
	public static final InvoiceMachineService invoiceMachineService = (InvoiceMachineService)wac.getBean("invoiceMachineService");
	public static final AdvertiseService advertiseService=(AdvertiseService)wac.getBean("advertiseService");*/
}
